]> dgit.raspbian.org Git - gnome-shell.git/commit
workspacesView: Simplify the workspacesOnlyOnPrimary implementation
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 11 Sep 2013 16:12:42 +0000 (12:12 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 30 Oct 2013 17:17:39 +0000 (13:17 -0400)
commit8f86fd6bae8a5d05d63bbbfd94cf655449b06b1e
tree5dc87b65e88c200191c7cb643d20ec60aac14d23
parentd5cd534320b1ca86f2986191c2336eb8ab6b6cac
workspacesView: Simplify the workspacesOnlyOnPrimary implementation

Before, workspacesOnlyOnPrimary was implemented in quite a crazy manner:

 * If workspacesOnlyOnPrimary was false, we'd create one WorkspacesView per
   monitor, with the primary one being a bit special.

 * If workspacesOnlyOnPrimary was true, we'd create one WorkspacesView, and
   additional montiors would be handled inside that WorkspacesView as
   "extra workspaces".

This caused numerous bugs as the two modes weren't consistently
implemented, and a lot of code was duplicated between all the modes.
Fix this by always creating WorkspaceViews, even if it only handles
one interface. We do this by having two different WorkspacesView-ish
classes: WorkspacesView handles the traditional combination of lots
of workspces, and a new ExtraWorkspaceView is in control of only one
workspace.
js/ui/workspacesView.js